﻿@{
    ViewBag.Title = "新增";
}

@model MMS.UI.Areas.Admin.ViewModels.GoodsInfoModel
@section headSection{
    <style type="text/css">
        #imgIco {
            width: 16px;
            height: 16px;
            margin-top: 4px;
            display: inline-block;
        }
    </style>

    <script type="text/javascript">


        function begin() {
            $.msgBoxObj.showWait("请稍后~~~：）");
        }
        function complete(xhrObj) {
            $.msgBoxObj.hide();
            $.msgProcess(xhrObj.responseText, function () {
                $.globalHelper.reloadSeletecTabDataGrid();
                $.globalHelper.closeCommonWindow();//消息显示完毕后，关闭公共窗体
            });
        }

    </script>
}
@using (Ajax.BeginForm(new AjaxOptions() { OnBegin = "begin", OnComplete = "complete" }))
{
    <table class="tbList">
        <tr>
            <td>@Html.DisplayNameFor(o => o.GName)</td>
            <td>@Html.TextBoxFor(o => o.GName)</td>
            <td>@Html.ValidationMessageFor(o => o.GName)</td>
        </tr>
        <tr>
            <td>@Html.DisplayNameFor(o => o.GCId)</td>
            <td>@Html.DropDownListFor(o => o.GCId, ViewBag.Category as IEnumerable<SelectListItem>)</td>
            <td>@Html.ValidationMessageFor(o => o.GCId)</td>
        </tr>
        <tr>
            <td>@Html.DisplayNameFor(o => o.GCostPrice)</td>
            <td>@Html.EditorFor(o => o.GCostPrice)</td>
            <td>@Html.ValidationMessageFor(o => o.GCostPrice)</td>
        </tr>
        <tr>
            <td>@Html.DisplayNameFor(o => o.GSellPrice)</td>
            <td>@Html.EditorFor(o => o.GSellPrice)</td>
            <td>@Html.ValidationMessageFor(o => o.GSellPrice)</td>
        </tr>
        <tr>
            <td>@Html.DisplayNameFor(o => o.GInventory)</td>
            <td>@Html.TextBoxFor(o => o.GInventory)</td>
            <td>@Html.ValidationMessageFor(o => o.GInventory)</td>
        </tr>
        <tr>
            <td>@Html.DisplayNameFor(o => o.GInmin)</td>
            <td>@Html.TextBoxFor(o => o.GInmin)</td>
            <td>@Html.ValidationMessageFor(o => o.GInmin)</td>
        </tr>
        <tr>
            <td>@Html.DisplayNameFor(o => o.GInmax)</td>
            <td>@Html.TextBoxFor(o => o.GInmax)</td>
            <td>@Html.ValidationMessageFor(o => o.GInmax)</td>
        </tr>
        <tr>
            <td>@Html.DisplayNameFor(o => o.GIntegralRatio)</td>
            <td>@Html.TextBoxFor(o => o.GIntegralRatio)</td>
            <td>@Html.ValidationMessageFor(o => o.GIntegralRatio)</td>
        </tr>
        <tr>
            <td>@Html.DisplayNameFor(o => o.GRemark)</td>
            <td>@Html.EditorFor(o => o.GRemark)</td>
            <td>@Html.ValidationMessageFor(o => o.GRemark)</td>
        </tr>

        <tr>
            <td colspan="3">
                <input type="submit" value="确定新增" />

            </td>
        </tr>
    </table>
}

